Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMB-437: Support Different Date Formats For Tokens #97

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

shahrukh-compuco
Copy link
Contributor

Overview

The current implementation for values of date tokens only support a fix format which is something like 31/Dec/2024. This pr adds the support for most of the different date formats that are supported by this function.

Before

Dates were being provided in just a single format for certificate date token values.

After

Now we can utilize this date formatting for certificate date tokens.

Technical Details

Currently we are providing string values for tokens, this pr changes the values to be a DateTime object so that civi formats the dates according to the given format. If no format is given then the default format that is defined in admin settings will be used

@shahrukh-compuco shahrukh-compuco merged commit c7adebb into master Oct 16, 2024
2 checks passed
@shahrukh-compuco shahrukh-compuco deleted the mmb-437-date-formats branch October 16, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants